package edu.ucollege.android;

import edu.ucollege.android.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TableRow;
import android.widget.TableRow.LayoutParams;
import android.widget.Toast;

public class CafeActivity extends Activity {
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_cafe);
        //GridView view = (GridView) findViewById(R.id.cafeLayout);
        Button today = (Button) findViewById(R.id.cafeToday);
        Button week = (Button) findViewById(R.id.cafeWeek);
        LayoutParams buttonLayout = new TableRow.LayoutParams(200, 100);
        buttonLayout.gravity = 1;
        // get intent data
        //Intent i = getIntent();
        today.setLayoutParams(buttonLayout);
        week.setLayoutParams(buttonLayout);
        
        
        
        today.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
				// TODO Auto-generated method stub
				//Where to from here?
				Toast.makeText(getBaseContext(), "Toay's menu", Toast.LENGTH_SHORT).show();
			}
		});
        week.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
				// TODO Auto-generated method stub
				//Where to from here?
				Toast.makeText(getBaseContext(), "This week's menu", Toast.LENGTH_SHORT).show();
			}
		});
    }
}
